﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FlowList.aspx.cs" Inherits="Admin.WorkFlow.WorkFlowManage.FlowList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="/Themes/Default/Css/Style.css" rel="stylesheet" type="text/css" />
    <link href="/Components/EasyUI/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="/Components/EasyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <script src="/Components/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/Jscript/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/Jscript/CheckBox.js" type="text/javascript"></script>
    <script src="/Components/EasyUI/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="/Jscript/midsoft.js" type="text/javascript"></script>
    <title>流程管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 100%;" cellpadding="2" cellspacing="0" class="workspacesearch">
            <tr>
                <td class="dt" align="center">
                    查询条件
                </td>
                <td style="width: 100px" align="center" class="tdbg">
                    <b>流程名称：</b>
                </td>
                <td class="tdbg">
                    <asp:TextBox ID="txtFlowName" runat="server"></asp:TextBox>
                </td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
            <tr>
                <td>
                    总共有
                    <asp:Label ID="lblCount" runat="server" Text="0" ForeColor="Red"></asp:Label>&nbsp;条记录
                </td>
                <td align="right">
                    <table width="200px">
                        <tr>
                            <td>
                                <asp:ImageButton ID="imgBtnSearch" ImageUrl="/Themes/TheOne/images/btn_search.gif"
                                    runat="server" OnClick="btnSearch_Click" />
                            </td>
                            <td>
                                <a href="javascript:void(0);" onclick="javascript:openSysiframe('流程添加','/WorkFlow/WorkFlowManage/FlowAdd.aspx',400,300);">

                                    <img alt="添加" src="/Themes/TheOne/images/btn_add.gif" /></a>                                
                                  <%--  <a href="javascript:void(0);" onclick="javascript:openSysiframe('流程添加','/WorkFlow/FormTable/TaskBook/TaskBook_Add.aspx?projectId=1&&OrganizeId=3',1000,600);">
>>>>>>> .r339
                                    <img alt="添加" src="/Themes/TheOne/images/btn_add.gif" /></a>
<<<<<<< .mine
                                <%--<a href="javascript:void(0);" onclick="javascript:openSysiframe('流程添加','/WorkFlow/FormTable/TaskBook/TaskBook_Add.aspx?projectId=1&&OrganizeId=3',1000,600);">
                                    <img alt="添加" src="/Themes/TheOne/images/btn_add.gif" /></a>
=======
                                    <a href="javascript:void(0);" onclick="javascript:openSysiframe('流程添加','/WorkFlow/FormTable/TaskBook/TaskBook_Modify.aspx?projectId=1&&OrganizeId=3&&id=4',1000,600);">
                                    <img alt="修改" src="/Themes/TheOne/images/btn_add.gif" /></a>
                                    <a href="javascript:void(0);" onclick="javascript:openSysiframe('流程添加','/WorkFlow/FormTable/TaskBook/TaskBook_ReadOnly.aspx?id=4',1000,600);">
                                    <img alt="查看" src="/Themes/TheOne/images/btn_add.gif" /></a>--%>

                            </td>
                            <td>
                                <asp:ImageButton ID="imgBtnDel" ImageUrl="/Themes/TheOne/images/btn_del.gif" runat="server"
                                    OnClick="imgBtnDel_Click" />
                            </td>
                            <td>
                                <a href="javascript:location.reload();">
                                    <img alt="刷新" src="/Themes/TheOne/images/btn_reflash.gif" /></a>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #8fc5dd">
            <tr>
                <td>
                    <!--Search end-->
                    <table height="350px" border="0" width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td valign="top" height="330px">
                                <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="100%" CellPadding="4"
                                    OnPageIndexChanging="gridView_PageIndexChanging" DataKeyNames="PmFlowId" OnRowDataBound="gridView_RowDataBound"
                                    AutoGenerateColumns="False" RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated"
                                    ForeColor="#333333">
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                    <Columns>
                                        <asp:TemplateField ControlStyle-Width="30" HeaderText="选择">
                                            <ItemTemplate>
                                                <asp:CheckBox ID="checkboxname" name="checkboxname" onclick="javascript:SingleCheckJs();"
                                                    runat="server" />
                                            </ItemTemplate>
                                            <ControlStyle Width="30px"></ControlStyle>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="流程名称" SortExpression="FlowName">
                                            <ItemTemplate>
                                                <a href="javascript:void(0);" onclick="openSysiframe('修改流程信息','/WorkFlow/WorkFlowManage/Modify.aspx?id=<%#Eval("PmFlowId") %>',400,300);">
                                                    <%# Eval("FlowName")%></a>
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="NewForm" HeaderText="新建表单" SortExpression="NewForm" ItemStyle-HorizontalAlign="Center">
                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="EditForm" HeaderText="编辑表单" SortExpression="EditForm"
                                            ItemStyle-HorizontalAlign="Center">
                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ReadonlyForm" HeaderText="只读表单" SortExpression="ReadonlyForm"
                                            ItemStyle-HorizontalAlign="Center">
                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="StartRole" HeaderText="流程启动角色" SortExpression="StartRole"
                                            ItemStyle-HorizontalAlign="Center">
                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:TemplateField HeaderText="节点设置">
                                            <ItemTemplate>
                                                <a href="javascript:void(0);" onclick="openSysiframe('节点设置','/WorkFlow/WorkFlowNode/Manage.aspx?PmFlowId=<%#Eval("PmFlowId") %>',900,500);">
                                                    节点设置</a>
                                            </ItemTemplate>
                                            <ControlStyle Width="50px" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <EditRowStyle BackColor="#999999" />
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="#598cbf" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                    <RowStyle HorizontalAlign="Center" BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>
                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                                </asp:GridView>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CssClass=""
                                    FirstPageText="首页" HorizontalAlign="Right" LastPageText="末页" NextPageText="下一页"
                                    PageIndexBoxType="TextBox" PrevPageText="上一页" ShowCustomInfoSection="Left" ShowInputBox="Always"
                                    ShowPageIndexBox="Always" OnPageChanged="AspNetPager1_PageChanged">
                                </webdiyer:AspNetPager>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
